package com.fs.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "管理员查看订单返回数据格式")
public class OrderAdminVO {

    @ApiModelProperty("订单ID")
    private Long id;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("订单状态")
    private Integer status;

    @ApiModelProperty("总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty("实际支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("支付方式")
    private Integer paymentMethod;

    @ApiModelProperty("物流单号")
    private String logisticsNo;

    @ApiModelProperty("收货人")
    private String receiverName;

    @ApiModelProperty("收货地址")
    private String receiverAddress;

    @ApiModelProperty("下单时间")
    private LocalDateTime orderTime;

    @ApiModelProperty("支付时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty("发货时间")
    private LocalDateTime deliveryTime;

    @ApiModelProperty("完成时间")
    private LocalDateTime receiveTime;

    @ApiModelProperty("订单明细列表")
    private List<OrderItemVO> items;
}
